package com.qscloud.product.hr.controller;


import com.qscloud.product.hr.dao.ProductDao;
import com.qscloud.product.hr.entity.Product;
import com.qscloud.product.hr.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author hr
 * @since 2021-04-07
 */
@RestController
@RequestMapping("/product")
public class ProductController {

    @Autowired
    ProductService productService;
    @Autowired
    ProductDao productDao;
    @GetMapping("/")
    private Product get (){
        Product product = productService.queryOne();
        System.out.println(product+"--ooo--");
//        System.out.println("---1----");
//        Product select = productService.selectById("1");
        return  product;
    }
}

